<?php slot('user','active'); ?>
<div class="row-fluid">	
<div class="box span12">
    <div class="box-header">
        <h2><i class="icon-align-justify"></i><span class="break"></span>用户资料预览</h2>
        <div class="box-icon">
            <a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
            <a href="#" class="btn-close"><i class="icon-remove"></i></a>
        </div>
    </div>
    <div class="box-content">
        <table class="table table-bordered table-striped table-condensed">
              <thead>
                  <tr>
                      <th>帐号属性</th>
                      <th>值</th>                         
                  </tr>
              </thead>   
              <tbody>
                <tr>
                    <td>帐号：</td>
                    <td class="center"><?php echo $user->getPhone(); ?></td>                           
                </tr>    
                <tr>
                    <td>帐号状态：</td>
                    <td class="center"><?php echo User::$status[$user->getStatus()]; ?></td>                           
                </tr>
                <tr>
                    <td>昵称：</td>
                    <td class="center"><?php echo $user->getNickname(); ?></td>                           
                </tr>
                <tr>
                    <td>头像：</td>
                    <td class="center"><a href="<?php echo $user->getCover(); ?>" target="_blank"><?php echo $user->getCover(); ?></a></td>                           
                </tr>
                <tr>
                    <td>角色：</td>
                    <td class="center"><?php echo User::$roles[$user->getRole()]; ?></td>                           
                </tr>
                <tr>
                    <td>省：</td>
                    <td class="center"><?php echo $user->getProvince(); ?></td>                           
                </tr>
                <tr>
                    <td>城市：</td>
                    <td class="center"><?php echo $user->getCity(); ?></td>                           
                </tr>
              </tbody>
         </table>     
    </div>
</div>
</div>
<div class="row-fluid">	
<div class="box span12">
    <div class="box-header">
        <h2><i class="icon-align-justify"></i><span class="break"></span>孩子信息</h2>
        <div class="box-icon">
            <a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
            <a href="#" class="btn-close"><i class="icon-remove"></i></a>
        </div>
    </div>
    <div class="box-content">
        <table class="table table-bordered table-striped table-condensed">
              <thead>
                  <tr>
                      <th>出生年月</th>
                      <th>年龄</th> 
                      <th>性别</th>
                  </tr>
              </thead>   
              <tbody>
                <?php foreach($user->getChilds() as $child): ?>
                <tr>
                    <td><?php echo $child->getYear(); ?>年<?php echo $child->getMonth(); ?>月</td>
                    <td class="center"><?php echo $child->getChildOld(); ?>岁</td>        
                    <td><?php echo $child->getSexToString(); ?></td>
                </tr>     
                <?php endforeach; ?>
              </tbody>
         </table>     
    </div>
</div>
</div>